STEP 4: Did you notice the green text on the first line of the main function? This text is a docstring.

A docstring is a special type of comment that explains and documents what a function does.

  • Let's add a docstring to set_stage() since we don't have one there. We'll put one under each function!
  • Go to and drag in Docstring so that it is the first line indented under set_stage().
  • Change the text inside the docstring so that it says """ Sets up the stage for the game """.

To navigate the page using the TAB key, first press ESC to exit the code editor.

def set_stage(): stage.set_background("soccerfield") stage.disable_floor() def main(): """ Sets up the program and calls other functions """ set_stage() main()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)